package com.lm.boot.controller;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@EnableAutoConfiguration
public class JSPIndexController {

    @RequestMapping("/jsp/hello")
    public ModelAndView getListaUtentiView(){
        ModelMap modelMap = new ModelMap();
        modelMap.addAttribute("name","Spring Boot");
        return new ModelAndView("index",modelMap);
    }
}
